package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.SkuDiscountTo;
import com.atguigu.common.to.SpuBoundsTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "gulimall-coupon")
public interface FeignCouponService {

    @GetMapping(value = "/coupon/coupon/userinfo")
    R userinfo();

    @PostMapping(value = "/coupon/spubounds/save/feign")
    R spuBoundsSaveFeign(@RequestBody SpuBoundsTo spuBoundsTo);

    @PostMapping("coupon/discount/save")
    R discountSave(@RequestBody SkuDiscountTo skuDiscountTo);

}